<div id="memberDetail">
    <table style="width: 100%;height: 100%;">
        <tr>
            <td style="vertical-align: middle;">
                <table style="margin-left: auto;margin-right: auto;">
                    <tr>
                        <td style="text-align: center;">
                            <div style="float: left;margin-left:auto;">
                                <?php
                                    if(is_file("memberPhoto/".$member["yourImage"])){
                                        $imgFile="memberPhoto/".$member["yourImage"];
                                    }else{
                                        $imgFile="images/member.png";
                                    }
                                ?>
                                <img src="<?=$imgFile;?>" style="max-width: 200px;max-height: 300px;">
                            </div>
                            <div style="float: left;margin-right: auto;">
                                <table>
                                    <tr>
                                        <td class="formInput"><?=$member["title"]." ".$member["firstName"]." ".$member["lastName"]?></td>
                                    </tr>
                                    <tr>
                                        <td class="formInput"><a href="tel:<?=$member["mobile"]?>"><?=$member["mobile"]?></a></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="button" value="ต้นทุน/รายรับ" class="btn btn-default" style="font-size: 120%;"
                                                onclick="window.open('?page=member/farm/farm&memID=<?=$memID?>','_self')"
                                                >
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="coopName"><?=$coopName[$member["coopID"]]?></div>
</div>